<section class="container-fluid search-panel">
    <div class="search-panel-inner">
        <meta-search-bar ng-submit="search()" search-text="searchText" keywords="keywordList"></meta-search-bar>
        <!--<form ng-submit="search()">-->

        <!--</form>-->
    </div>
</section>

<section class="talent-result clearfix" cg-busy="waitingListPromise">
    <aside class="col-xs-3 talent-result-list">
        <div class="col-xs-12" style="margin-bottom:10px">
            <ui-select ng-model="filters.types.item">
                <ui-select-match>
                    <span ng-bind="'类型：'+$select.selected.value"></span>
                </ui-select-match>
                <ui-select-choices repeat="type.key as (key,type) in filters.types.datas[0]">
                    <span ng-bind="type.value"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="col-xs-12" style="margin-bottom:10px">
            <ui-select ng-model="filters.times.item">
                <ui-select-match>
                    <span ng-bind="'期限：'+$select.selected"></span>
                </ui-select-match>
                <ui-select-choices repeat="item in filters.times.datas">
                    <span ng-bind="item"></span>
                </ui-select-choices>
            </ui-select>
        </div>

        <div class="col-xs-12" style="margin-bottom:10px">
            <ui-select multiple ng-model="filters.districts.items" theme="bootstrap"
                       ng-disabled="filter.districts.disabled"
                       close-on-select="false" title="地区" class="col-xs-12">
                <ui-select-match placeholder="不限地区">{{$item}}</ui-select-match>
                <ui-select-choices repeat="district in filters.districts.datas">
                    <div ng-bind="district"></div>
                </ui-select-choices>
            </ui-select>
        </div>
        <button ng-click="filters.go()" class="btn btn-primary col-xs-12" style="height:34px;margin-bottom:10px">筛&nbsp;&nbsp;选</button>
        <!--</div>-->
        <div class="col-xs-12" ng-if="page.data.length>0">
            <p class="hidden-sm hidden-md">相关技术人才></p>
            <div class="panel" ng-show="page.data.length>0">
                <div class="panel-body">
                    <ul class="list-outter" uib-collapse="isCollapsed">
                        <li ng-repeat="item in page.data track by $index" class="item"
                            ng-class="{'active':page.pageIndex===$index,'active-next':page.pageIndex===$index+1}">
                            <a ng-click="page.SelectItem($index)">
                                <p class="more-hidden">
                                    <span ng-bind="$index+1" class="prefix"></span>
                                    <span
                                        ng-bind="item.user?(item.user.name||'佚名')+'|'+(item.organization||'暂无所属机构'):item"></span>
                                </p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </aside>
    <!--结果-->
    <div class="col-xs-9 talent-result-detail"
         ng-if="page.data.length>0&&!waiting">
        <uib-tabset class="talent-result-tabs">
            <!--资源-->
            <uib-tab heading="{{tab[1].title}}" active="tab[1].active" select="tab[1].Select()">
                <ul class="list-outter">
                    <li class="item" ng-repeat="item in achievementSet.data">
                        <a class="item-title"
                              ng-bind-html="item.name||item.title|rshighlight:keywordList|unsafe" ng-click="openDetailModal(item,keywordList)" title="查看详情>>"></a>
                        <p class="item-body" ng-if="item.abstract||item.content"
                           ng-bind-html="(item.abstract||item.content)|rshighlight:keywordList|unsafe"></p>
                    </li>
                </ul>
                <uib-pagination boundary-links="true" total-items="achievementSet.all.length"
                                ng-model="achievementSet.currentPage"
                                class="pagination-sm pull-right"
                                previous-text="&lsaquo;"
                                items-per-page="achievementSet.pageNumber"
                                max-size="10" boundary-link-numbers="true"
                                next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"
                                ng-change="achievementSet.Change()"
                                ng-if="achievementSet.all.length>achievementSet.pageNumber"></uib-pagination>
            </uib-tab>
            <!--人才-->
            <uib-tab heading="{{tab[0].title}}" active="tab[0].active" select="tab[0].Select()" ng-show="tab[0].show">
                <div class="title clearfix" ng-if="talent.talentInfo.id">
                    <div class="item-img"
                         ng-style="{'background-image':'url('+(talent.talentInfo.user.avatar || 'images/common/header.png')+')','background-size':'cover'}">
                        <span class="prefix active" ng-bind="page.pageIndex+1"></span></div>
                    <div style="float:left">
                        <p class="item-title" ng-bind="talent.talentInfo.user.name||talent.talentInfo|| '佚名'"></p>
                        <p ng-bind="(talent.talentInfo.organization||'暂无所属机构')+' | '+(talent.talentInfo.title||'暂无职称')"></p>
                        <p class="label-container hidden-xs">
                            <span class="label" ng-repeat="keyword in talent.talentInfo.keywords"
                                  ng-bind="keyword"></span>
                        </p>
                        <!--<a href="javascript:void(0)"-->
                        <!--class="btn btn-xs btn-default btn-favorite col-sm-4 hidden-xs hidden-sm hidden-md"-->
                        <!--ng-click="favorite(page.data[page.pageIndex].id)" style="margin-right: 10px">收&nbsp;&nbsp;藏</a>-->
                        <!--<a href="javascript:void(0)" class="btn-link btn-xs btn-favorite hidden-lg"-->
                        <!--ng-click="favorite(page.data[page.pageIndex].id)" style="float: left">收藏</a>-->
                        <a class="btn btn-xs btn-default btn-page col-sm-5" ng-if="talent.talentInfo.id"
                           ui-sref="meta.talent.detail.project({talentId:talent.talentInfo.id, page:1})"
                           target="_blank">Ta的主页</a>

                    </div>
                </div>
                <div class="title clearfix" ng-if="!talent.talentInfo.id" style="margin-bottom: 0">
                    <div style="float:left">
                        <p class="item-title"
                           ng-bind="talent.talentInfo.user.name||talent.talentInfo|| '佚名'"
                           style="margin-bottom: 0"></p>
                    </div>
                </div>
                <ul class="list-outter" ng-if="talent.achievements.length>0">
                    <li class="item" ng-repeat="item in talent.achievements">
                        <a class="item-title"
                              ng-bind-html="item.title||item.name|rshighlight:keywordList|unsafe" ng-click="openDetailModal(item,keywordList)" title="查看详情>>"></a>
                        <p class="item-body" ng-if="item.abstract||item.content"
                           ng-bind-html="(item.content||item.abstract)|rshighlight:keywordList|unsafe"></p>
                    </li>
                </ul>
            </uib-tab>
        </uib-tabset>
    </div>
    <!--无结果-->
    <div class="col-xs-9 talent-result-detail"
         ng-if="page.data.length<1&&!waiting"
         ng-class="{'none':page.data.length<1&&!waiting}">
        <div class="nullHint col-xs-12">
            <h4>很抱歉，没有找到与“<span ng-bind="keywords"></span>”完全匹配的科研。 </br>建议您提交您的技术需求，迈科技将尽快为您找到合适的解决者。
            </h4>
            <button class="btn btn-default btn-push-tech">发布技术需求</button>
            <!--<p>相关搜索</p>-->
            <!--<p><a ng-repeat="item in [1,2,3,4,5,6,7,87,9,9,'12','a','sad'] track by $index" ng-bind="'空气污染'+item"-->
            <!--class="hotKeywords"></a>-->
            <!--</p>-->
        </div>
    </div>
</section>
